package com.yanqu.road.server.cmd.activity.sonhai.cross;

import com.yanqu.road.entity.activity.args.ActivityValueParamArgs;
import com.yanqu.road.entity.enums.eGamePlayerEventType;
import com.yanqu.road.entity.player.UserInfo;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.SonHaiProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.CmdApi;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.activity.sonhai.SonHaiActivityMgr;
import com.yanqu.road.server.manger.player.UserMgr;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_SON_HAI_NOTIFY_SERVER_SYNC_VIP_AVE_FROM_CROSS,desc = "山海伏兽-通知区服同步vip均值-跨服返回")
@CmdApi(reqMsg = SonHaiProto.SonHaiNotifyServerSyncVipPowerFromCrossMsg.class, respMsg = SonHaiProto.SonHaiNotifyServerSyncVipPowerFromCrossMsg.class)
public class SonHaiNotifyServerSyncVipAveCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        SonHaiProto.SonHaiNotifyServerSyncVipPowerFromCrossMsg reqMsg = SonHaiProto.SonHaiNotifyServerSyncVipPowerFromCrossMsg.parseFrom(packet.getBytes());
        SonHaiActivityMgr.sendVipAveToCross(reqMsg);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
